package com.ruoyi.zhgd.mapper;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.ruoyi.common.annotation.DataColumn;
import com.ruoyi.common.annotation.DataPermission;
import com.ruoyi.zhgd.domain.NLaboratoryAsphaltLowTemperatureElongationRes;
import com.ruoyi.zhgd.domain.bo.ZjExperimentBindingBo;
import com.ruoyi.zhgd.domain.vo.NLaboratoryAsphaltLowTemperatureElongationResVo;
import com.ruoyi.common.core.mapper.BaseMapperPlus;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

/**
 * 沥青低温延伸度试验仪_结果数据Mapper接口
 *
 * @author cj
 * @date 2023-09-20
 */
public interface NLaboratoryAsphaltLowTemperatureElongationResMapper extends BaseMapperPlus<NLaboratoryAsphaltLowTemperatureElongationResMapper, NLaboratoryAsphaltLowTemperatureElongationRes, NLaboratoryAsphaltLowTemperatureElongationResVo> {

    @DataPermission({
        @DataColumn(key = "deptName",value = "dept.dept_id")
    })
    List<Map<String,Object>> queryPages(@Param(value = "page") Page page,@Param(value = "params") Map<String, Object> params);

    @DataPermission({
        @DataColumn(key = "deptName",value = "dept.dept_id")
    })
    Page<Map<String, Object>> selectYdPage(@Param(value = "bo") ZjExperimentBindingBo bo, Page<Object> build);

    void updateStatus(@Param(value = "laboratoryId") String laboratoryId, @Param(value = "eligible")Integer eligible,@Param(value = "relevance") Integer relevance);

    String selectDeptId(String deviceId);
}
